package com.weixing.mall.provider.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.weixing.mall.provider.mapper.RoleUserMapper;
import com.weixing.mall.provider.model.domain.Role;
import com.weixing.mall.provider.model.domain.RoleUser;
import com.weixing.mall.provider.service.IRoleUserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 角色用户关联表 服务实现类
 * </p>
 *
 * @author Small
 * @since 2019-11-18
 */
@Service
public class RoleUserServiceImpl extends ServiceImpl<RoleUserMapper, RoleUser> implements IRoleUserService {

    @Override
    public List<Role> findByUserId(Long id) {
       return baseMapper.findByUserId(id);
    }
}
